T
The type of the returned Leadtools.Dicom.Scp.Command.DicomCommand. This type should be inherited from a Leadtools.Dicom.Scp.Command.DicomCommand.
LEADTOOLS Medical (Leadtools.Dicom.Scp assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
CreateTypedCommand<T>(IDicomCommandClientSessionProxy,Int64[]) Method
See Also 
Leadtools.Dicom.Scp.Command Namespace > DicomCommandFactory Class > CreateTypedCommand Method : CreateTypedCommand<T>(IDicomCommandClientSessionProxy,Int64[]) Method



sessionProxy
The IDicomCommandClientSessionProxy object which will be used to handle the communication with the client.
attributes
The list of attributes which is received with the client request.
sessionProxy
The IDicomCommandClientSessionProxy object which will be used to handle the communication with the client.
attributes
The list of attributes which is received with the client request.
Generic method for creating a typed command with the provided parameters.

Syntax

Visual Basic (Declaration) 
Overloads Public Overridable Function CreateTypedCommand(Of T As DicomCommand)( _
   ByVal sessionProxy As IDicomCommandClientSessionProxy, _
   ByVal attributes() As Long _
) As T
Visual Basic (Usage)Copy Code
Dim instance As DicomCommandFactory
Dim sessionProxy As IDicomCommandClientSessionProxy
Dim attributes() As Long
Dim value As T
 
value = instance.CreateTypedCommand(Of T)(sessionProxy, attributes)
C# 
public virtual T CreateTypedCommand<T>( 
   IDicomCommandClientSessionProxy sessionProxy,
   long[] attributes
)where T: DicomCommand
C++/CLI 
public:
virtual T^ CreateTypedCommandgeneric<typename T>
( 
   IDicomCommandClientSessionProxy^ sessionProxy,
   array<int64>^ attributes
) where T: DicomCommand

Parameters

sessionProxy
The IDicomCommandClientSessionProxy object which will be used to handle the communication with the client.
attributes
The list of attributes which is received with the client request.

Type Parameters

T
The type of the returned Leadtools.Dicom.Scp.Command.DicomCommand. This type should be inherited from a Leadtools.Dicom.Scp.Command.DicomCommand.

Return Value

Returns the created Leadtools.Dicom.Scp.Command.DicomCommand.

Remarks

This method will try to create a Leadtools.Dicom.Scp.Command.DicomCommand with the given generic type. It will also pass the provided sessionProxy and requestDataSet to the command constructor.

If the method fails to create the command it will throw an exception.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Scp requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features